package com.liaoxuefeng.java_thread.excep;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.logging.Logger;

public class LogTest {
    public static void main(String[] args) {
        Logger logger = Logger.getGlobal();
        logger.info("start processing");
        logger.warning("memory is running out...");
        logger.fine("ignore...");
        logger.severe("process will be terminated...");

        // 使用 Common Logging
        // Log log = LogFactory.getFactory();
        // log.info("start ...");
        // log.warn("end.");
    }
}
